package com.docMan.bean;

import java.io.IOException;

import com.docMan.dao.pojo.DocFtp;
import com.docMan.utils.FtpUtils;
import com.docMan.utils.GetRealPath;

public class DirectoryMakeRunnable implements Runnable  {
	private String path;
	private DocFtp ftp;
	
	
	public DirectoryMakeRunnable(String path, DocFtp ftp) {
		super();
		this.path = path;
		this.ftp = ftp;
	}


	@Override
	public void run() {
		try {
			String realPath=GetRealPath.getPath(path);
			FtpUtils.makeDirectory(realPath, ftp);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
